<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script src="http://code.jquery.com/jquery-latest.js"></script>

	<title>rapid-DEV.net Jquery Ajax JSON Cross Domain Example</title>

	<style type="text/css">
		body, html { font-family:helvetica,arial,sans-serif; font-size:90%; width:500; height:500;}
		/*div {
			display: none;
		}*/
	</style>
</head>



<script>




jQuery(document).ready(function(){
	var port = chrome.extension.connect("cechifhiodppepdgkkdminalkhgdgnjf");
	port.onDisconnect.addListener(function(msg) {
		$("#installation_expected").show();
	});

	/*GET TAB URL*/
	chrome.tabs.getSelected(null, function(tab) {
		 showFriends(tab.url);
	});
	function showFriends(link) {
		$("#friends").attr('src', 'http://cyberang3l.ath.cx:33335/TempFriends.php?link='+link);
		$("#friends").show();
	}

});



</script>
<body>
	
	<div id="installation_expected"  style="display:none;">
		Install extension to continue!
	</div>
	
<!-- 	<div   style="display:none;"> -->
		<iframe id="friends" style="display:none;" frameborder="0" width="300" height="300">
			<p>Your browser does not support iframes.</p>
		</iframe>
<!-- 	</div> -->


</body>
</html>